﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ServiceLayer.Service;
using GenUtil.Dto;

namespace WebApp
{
    public partial class LogIn : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void LogInBtn_Click(object sender, EventArgs e)
        {
            List<LoginDto> loginDtos = ServiceLocator.getLoginSerivice().getLoginDtos();
            if (loginDtos.userId == UserNameTxt.Text.Trim() && loginDtos["PASSWORD"] == PasswordTxt.Text.Trim())
            {
                Response.Redirect("~/");
            }
        }
    }
}